import React from "react";
import { RouteObject } from "@/routes/interface";
import Layout from "@/layouts";
import lazyLoad from "@/routes/utils/lazyLoad";

const settings: Array<RouteObject> = [
	{
		element: <Layout />,
		meta: {
			title: "设置",
			key: "settings"
		},
		children: [
			{
				path: "/settings",
				element: lazyLoad(React.lazy(() => import("@/pages/settings/index"))),
				meta: {
					title: "设置",
					requiresAuth: true,
					key: "/settings",
					icon: ""
				}
			}
		]
	}
];

export default settings;
